package cn.lwj.common.entity;

import java.math.BigDecimal;
import java.text.DecimalFormat;

public class Apple {

    private Integer id;
    private String name;
    private BigDecimal money;
    private Integer csd;

    public static void main(String[] args) {
        String str = "0.96514";
        BigDecimal bigDecimal = new BigDecimal(str);
        System.out.println(bigDecimal);
        DecimalFormat df = new DecimalFormat("0.00");
        String str1 = df.format(Float.parseFloat(str));

        System.out.println(str1);
    }
}

